package com.quan.api.ums;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.quan.commons.core.bean.R;
import com.quan.commons.core.biz.support.MyBaseController;
import com.quan.commons.core.utils.PageUtils;
import com.quan.commons.log.annotation.SysLog;
import com.quan.mall.commons.vo.UmsMemberDistributionApplyVo;
import com.quan.mall.entity.UmsMemberDistributionApply;
import com.quan.mall.service.UmsMemberDistributionApplyService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import java.util.Arrays;
import java.util.List;


/**
 * 会员-分销申请登记表
 *
 * @author yhaoquan
 * @email yhaoquan@163.com
 * @date 2021-04-14 22:29:43
 */
@Slf4j
@Api(tags = "会员-分销申请登记表")
@RestController
@RequestMapping("/api/mall/umsmemberdistributionapply")
public class ApiUmsMemberDistributionApplyController extends MyBaseController {

    @Autowired
    private UmsMemberDistributionApplyService service;

    /**
     * 保存
     * @param vo
     * @return
     */
    @PostMapping("save")
    public R save(@Valid @RequestBody UmsMemberDistributionApplyVo vo) {
        this.service.save(vo);
        return R.ok();
    }

}
